<div id="iframeModal" class="modal modal-custom fade" tabindex="-1">
    <div class="modal-dialog modal-lg">
        <div class="modal-content ">
            <div class="modal-header">
                <button class="close" type="button" data-dismiss="modal">&times;</button>
                <h5 class="modal-title"></h5>
            </div>
            <div class="modal-body form-horizontal">
                <iframe  src="" frameborder="0" width="100%" height="600"></iframe>
            </div> <!--modal-body-->

            <div class="modal-footer">
                <button class="btn btn-primary " type="button" id="modalConfirmButton">确 认</button>
                <button class="btn btn-default" type="button" data-dismiss="modal">关 闭</button>
            </div>
        </div><!--modal-content-->
    </div><!--modal dialog-->
</div> <!--modal-->

<script>

    function closeModal(){
        $("#iframeModal").modal("hide");
    }

    $().ready(function () {
        var $iframeModal = $("#iframeModal");
        var $iframeToggle = $("[data-toggle='iframe-modal']")
        var $modalConfirmButton = $("#modalConfirmButton");

        $iframeToggle.click(function(){
            var url = $(this).data("href");
            var title = $(this).html();
            let isShowConfirm = $(this).data("confirm") === true;
            if(!isShowConfirm){
                $modalConfirmButton.remove();
            }
            $iframeModal.find("iframe").attr("src", url);
            $iframeModal.find(".modal-title").html(title);
            $iframeModal.modal("show");
        })
    });
</script>